package com.example.tkserver.entity;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import java.sql.Timestamp;

@Data
public class User {
    private int uid;
    private int loginType;      //登录类型 0-注册 1-登录
    private String openId;
    private String nickName;
    private String avatarUrl;
    private String name;
    private int gender;
    private String email;
    private String phone;
    private String password;
    private int scores;
    @Email(message = "请填写正确的邮箱地址")
    private int college;
    private String classes;
    @Length(min = 9,max = 12,message = "学号长度必须位于9到12之间")
    private String studentNumber;
    private String dorm;
    private String dormNumber;
    private long registerTime;
    private long lastTime;
}
